package com.mock.action.member;

import java.util.List;

import com.mock.dao.MemberDao;
import com.mock.dao.impl.MemberDaoImpl;
import com.mock.model.Member;
import com.opensymphony.xwork2.ActionSupport;

public class MemberAction extends ActionSupport{

	private MemberDao memberDao = new MemberDaoImpl();
	private List<Member> members;
	
	public String execute() {
		members = memberDao.getAllMember();
		return SUCCESS;
	}

	public List<Member> getMembers() {
		return members;
	}

	public void setMembers(List<Member> members) {
		this.members = members;
	}
	
}
